{template header}
	<div id="positionBox">
		<div class="left">
			<a href="{WEBURLPATH}/index.php">首页</a>&gt;
			商家中心
		</div>
	</div>

	<div class="c_2_1">
		<div class="leftmenu">
			<div class="leftmenu_top"></div>
			<div {if in_array($webglobal['action'], array('', 'image', 'password', 'map'))}class="leftmenu_on"{else}class="leftmenu_off"{/if}><a href="{WEBURLPATH}/mycom.php">商铺信息</a></div>
			<div {if $webglobal['action']=='couponlist' || $webglobal['action']=='couponedit'}class="leftmenu_on"{else}class="leftmenu_off"{/if}><a href="{WEBURLPATH}/mycom.php?action=couponlist">优惠券管理</a></div>
			<div {if $webglobal['action']=='couponadd'}class="leftmenu_on"{else}class="leftmenu_off"{/if}><a href="{WEBURLPATH}/mycom.php?action=couponadd">发布新的优惠券</a></div>
			<div class="leftmenu_bottom"></div>
		</div>
	</div>
	<div class="c_2_2">
<style>
.e2{
	width:700px;
}
.e2 li{
	width:100%;
	overflow:hidden;
	clear:both;
	padding:12px 0px;
	border-bottom:1px solid #EEE;
	color:#aaa;
}
.e2 small{
	color:#AAA;
	font-size:12px;
	margin-left:3px;
}
.e2 li b a{
	color:#555;
}
.e2 li a.preview{
	width:84px;
	float:left;
	margin-right:7px;
	margin-bottom:3px;
	margin-left:10px;
	display:inline;
}
.e2 li a.preview img{
	width:80px;
	height:80px;
	display:block;
	padding:1px;
	border:1px solid #EEE;
}
.e2 li a.preview:hover img{
	width:80px;
	height:80px;
	border:1px solid #AAA;
}
.e2 li a.title{
	overflow:hidden;
	line-height:25px;
	font-weight:bold;
	font-size:14px;
	margin-left:2px;
	color:#FF8E4B;
	margin-right:17px;
}
.e2 span.info{
	display:block;
	line-height:23px;
	color:#555;
	padding-left:12px;
}
.e2 span.info small{
	color:#AAA;
	font-size:12px;
	margin-left:3px;
}
.e2 span.info a{
	color:#690;
}
.e2 p.intro{
	color:#776955;
	line-height:20px;
	margin-left:5px;
	padding-left:10px;
	padding-right:10px;
	text-indent:0em;
	margin:0px;
	padding:0px;
	font-size:13px;
}
</style>
<!--{if $webglobal['action']=='couponlist'}-->

	<div class="linetitle">优惠券管理</div>
		<!--{if $webglobal['file_coupon']['datanum'] > 0}-->
			<!--{loop $webglobal['file_coupon']['dataarray'] $couponID $coupon}-->
			<div class="listbox"><ul class="e2"><li>
			<!--{if !empty($coupon['image'])}-->
				<a class="preview"><img src="{WEBURLPATH}{$coupon['image']}" alt="" /></a>
			<!--{else}-->
				<a class="preview"><img src="{WEBURLPATH}/images/defaultpic.gif" alt="" /></a>
			<!--{/if}-->

			<b>名称: </b>
			<a class="title" href="{WEBURLPATH}/coupon.php?action=view&id={$coupon['id']}" target="_blank"><font>{$coupon[name]}</font></a>
			<small>状态：</small>
			{if $coupon['status'] == 1}
				<strong style="color:green">{$webglobal['coupon_status'][$coupon['status']]}</strong>
			{else}
				<strong style="color:red">{$webglobal['coupon_status'][$coupon['status']]}</strong>
			{/if}
			<!-- {if $coupon['status'] == 0}
			<strong title="{$webglobal['coupon_status'][$coupon['status']]}" class="m-warn"></strong>
			{elseif $coupon['status'] == 1}
			<strong title="{$webglobal['coupon_status'][$coupon['status']]}" class="m-success"></strong>
			{elseif $coupon['status'] == 2}
			<strong title="{$webglobal['coupon_status'][$coupon['status']]}" class="m-error"></strong>
			{/if} -->
			<small>原价：</small>{$coupon['original']}
			<small>优惠价：</small>{$coupon['price']}
			 <span class="info"> 

			<small>开始时间：</small>{$coupon['starttime_show']}
			<small>结束时间：</small>{$coupon['endtime_show']}
			<small>发布时间：</small>{$coupon['pubtime_show']}
			</span>
			<br />
			{if $coupon['status'] == 0}
			<a style="color:#FF8E4B;" href="{WEBURLPATH}/mycom.php?action=couponedit&id={$coupon['id']}">[编辑]</a>&nbsp;&nbsp;
			{/if}
			<a style="color:#FF8E4B;" href="javascript:if(confirm('您确定要删除该优惠劵吗？')){window.location.href='{WEBURLPATH}/mycom.php?action=coupondel&id={$coupon['id']}'}">[删除]</a>
			</li></ul></div>
			<!--{/loop}-->
			{template page}
		<!--{else}-->
			<div>还没有发布的优惠券</div>
		<!--{/if}-->

<!--{elseif $webglobal['action']=='couponadd'}-->
	<script type="text/javascript" src="{WEBURLPATH}/javascript/calendar/WdatePicker.js"></script>
	<div class="linetitle">发布新的优惠券</div>
	<!--{if !empty($webglobal[CPM])}-->
		<div class="listulstyle">
			<ul>
				<!--{loop $webglobal[CPM] $tempkey $tempvalue}-->
				<li class="fcolor">$tempvalue</li>
				<!--{/loop}-->
			</ul>
		</div>
		<div class="blankline"></div>
	<!--{/if}-->
	<!-- <script type="text/javascript" charset="utf-8" src="{WEBURLPATH}/editor/kindeditor-min.js"></script> -->
	<!-- <script type="text/javascript" charset="utf-8" src="{WEBURLPATH}/javascript/calendar.js"></script> -->
	<form method="post" name="regform" id="regform" enctype="multipart/form-data" action="{WEBURLPATH}/mycom.php?action=couponadd&check">
	<table class="datatable" cellspacing="1">
		<tbody>
			<tr>
				<th>优惠劵分类</th>
				<td>
					<select name="coupon_category_id">
						<option value="0">选择分类...</option>
						<!--{loop $webglobal[file_coupon][category] $categoryID $option}-->
						<option value="{$categoryID}"<!--{if isset($webglobal['CPP']['coupon_category_id']) && $webglobal['CPP']['coupon_category_id'] == $categoryID}--> selected<!--{/if}-->>{$option[showName]}</option>
						<!--{/loop}-->
					</select>
				</td>
			</tr>
			<tr>
				<th>优惠劵名称</th>
				<td>
					<input type="text" name="name" id="name" size="70" value="{if isset($webglobal['CPP']['name'])} {$webglobal['CPP']['name']}{/if}" />
				</td>
			</tr>
			<tr>
				<th>优惠劵图片</th>
				<td>
					<input type="file" name="image" size="40" />
				</td>
			</tr>
			<tr>
				<th>原价</th>
				<td>
					<input type="text" name="original" size="10" value="{if isset($webglobal['CPP']['original'])} {$webglobal['CPP']['original']}{/if}" />
				</td>
			</tr>
			<tr>
				<th>优惠价</th>
				<td>
					<input type="text" name="price" size="10" value="{if isset($webglobal['CPP']['price'])} {$webglobal['CPP']['price']}{/if}" />
				</td>
			</tr>
			<tr>
				<th>开始时间</th>
				<td>
					<input type="text" name="starttime" style="width:120px;" value="{if isset($webglobal['CPP']['starttime'])} {$webglobal['CPP']['starttime']}{/if}" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" />
					<div>格式如1990-10-01</div>
				</td>
			</tr>
			<tr>
				<th>结束时间</th>
				<td>
					<input type="text" name="endtime" style="width:120px;" value="{if isset($webglobal['CPP']['endtime'])} {$webglobal['CPP']['endtime']}{/if}" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" />
					<div>格式如1990-10-01</div>
				</td>
			</tr>
			<tr>
				<th>优惠劵介绍</th>
				<td>
					<textarea id="introduction" name="introduction" style="width:500px;height:300px;">{if isset($webglobal['CPP']['introduction'])} {$webglobal['CPP']['introduction']}{/if}</textarea>
				</td>
			</tr>
		</tbody>
		<tfoot>
			<tr><th></th><td>
				<button type="submit">添  加</button>
			</td></tr>
		</tfoot>
	</table>
	</form>

<!--{elseif $webglobal['action']=='couponedit'}-->

	<div class="linetitle">修改优惠券</div>
	<!--{if !empty($webglobal[CPM])}-->
		<div class="listulstyle">
			<ul>
				<!--{loop $webglobal[CPM] $tempkey $tempvalue}-->
				<li class="fcolor">$tempvalue</li>
				<!--{/loop}-->
			</ul>
		</div>
		<div class="blankline"></div>
	<!--{/if}-->
	<!-- <script type="text/javascript" charset="utf-8" src="{WEBURLPATH}/editor/kindeditor-min.js"></script> -->
	<!-- <script type="text/javascript" charset="utf-8" src="{WEBURLPATH}/javascript/calendar.js"></script> -->
	<script type="text/javascript" src="{WEBURLPATH}/javascript/calendar/WdatePicker.js"></script>

	<form method="post" name="regform" id="regform" enctype="multipart/form-data" action="{WEBURLPATH}/mycom.php?action=couponedit&check">
	<input type="hidden" name="id" value="{$webrequest[id]}" />
	<table class="datatable" cellspacing="1">
		<tbody>
			<tr>
				<th>优惠劵分类</th>
				<td>
					<select name="coupon_category_id">
						<option value="0">选择分类...</option>
						<!--{loop $webglobal[file_coupon][category] $categoryID $option}-->
						<option value="{$categoryID}"<!--{if $webglobal['file_coupon']['editinfo']['coupon_category_id'] == $categoryID}--> selected<!--{/if}-->>{$option[showName]}</option>
						<!--{/loop}-->
					</select>
				</td>
			</tr>
			<tr>
				<th>优惠劵名称</th>
				<td>
					<input type="text" name="name" id="name" size="70" value="$webglobal['file_coupon']['editinfo']['name']" />
				</td>
			</tr>
			<tr>
				<th>优惠劵图片</th>
				<td>
					<input type="file" name="image" size="40" /><!--{if $webglobal[file_coupon][editinfo][image]!=''}--><a href="{WEBURLPATH}{$webglobal[file_coupon][editinfo][image]}" target="_blank">&nbsp;[查看图片]</a><!--{/if}-->
				</td>
			</tr>
			<tr>
				<th>原价</th>
				<td>
					<input type="text" name="original" size="10" value="{$webglobal['file_coupon']['editinfo']['original']}" />
				</td>
			</tr>
			<tr>
				<th>优惠价</th>
				<td>
					<input type="text" name="price" size="10" value="{$webglobal['file_coupon']['editinfo']['price']}" />
				</td>
			</tr>
			<tr>
				<th>开始时间</th>
				<td>
					<input type="text" name="starttime" style="width:200px;" value="$webglobal['file_coupon']['editinfo']['starttime_show']" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" />
					<div>格式如1990-10-01</div>
				</td>
			</tr>
			<tr>
				<th>结束时间</th>
				<td>
					<input type="text" name="endtime" style="width:200px;" value="$webglobal['file_coupon']['editinfo']['endtime_show']" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" />
					<div>格式如1990-10-01</div>
				</td>
			</tr>
			<tr>
				<th>优惠劵介绍</th>
				<td>
					<textarea id="introduction" name="introduction" style="width:500px;height:300px;">$webglobal['file_coupon']['editinfo']['introduction']</textarea>
				</td>
			</tr>
		</tbody>
		<tfoot>
			<tr><th></th><td>
				<button type="submit">修  改</button>
			</td></tr>
		</tfoot>
	</table>
	</form>
<!--{else}-->
	{templatecss my}
	<!-- <div class="linetitle">商铺信息</div> -->
	<!--{if !empty($webglobal[CPM])}-->
		<div class="listulstyle">
			<ul>
				<!--{loop $webglobal[CPM] $tempkey $tempvalue}-->
				<li><span style="color:red">$tempvalue</span></li>
				<!--{/loop}-->
			</ul>
		</div>
		<div class="blankline"></div>
	<!--{/if}-->
<div class="main my_info">
	<div class="b">
		<div class="c">
			<div class="tab">
				<ul>
					<li{if $webglobal['action'] == ''} class="current"{/if}><a href="{WEBURLPATH}/mycom.php">商铺信息</a></li>
					<li{if $webglobal['action'] == 'image'} class="current"{/if}><a href="{WEBURLPATH}/mycom.php?action=image">商铺图片</a></li>
					<li{if $webglobal['action'] == 'password'} class="current"{/if}><a href="{WEBURLPATH}/mycom.php?action=password">密码管理</a></li>
					<li{if $webglobal['action'] == 'map'} class="current"{/if}><a href="{WEBURLPATH}/mycom.php?action=map">地图定位</a></li>
				</ul>
			</div>
			<ul class="personal_info" id="personalInfo">
				<li class="">
					{if $webglobal['action'] == ''}
						<script type="text/javascript" src="{WEBURLPATH}/javascript/jquery.linkagesel-min.js"></script>
						<script type="text/javascript" src="{WEBURLPATH}/javascript/fancybox/jquery.mousewheel-3.0.4.pack.js"></script>
						<script type="text/javascript" src="{WEBURLPATH}/javascript/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
						<link rel="stylesheet" type="text/css" href="{WEBURLPATH}/javascript/fancybox/jquery.fancybox-1.3.4.css" media="screen" />

						<form method="post" name="regform" id="regform" enctype="multipart/form-data" action="{WEBURLPATH}/mycom.php?check" class="basic_info">
						<label>用户名：</label><span>{$webglobal['file_company']['editinfo']['username']}</span><br>
						<label>E-mail：</label><span>{$webglobal['file_company']['editinfo']['email']}</span><br>
						<label>商家名称：</label><span>{$webglobal['file_company']['editinfo']['name']}</span><br>
						<label>商家别名：</label><span>{$webglobal['file_company']['editinfo']['english_name']}</span><br>
						<label>营业执照代码：</label>
						<span>
						{if $webglobal[file_company][editinfo][bcode_image] != ''}
							<a rel="example_group" href="{WEBURLPATH}{$webglobal[file_company][editinfo][bcode_image]}" title="">{$webglobal['file_company']['editinfo']['bcode']}</a>
						{else}
							{$webglobal['file_company']['editinfo']['bcode']}
						{/if}
						</span><br>
						<label>商铺分类<span class="need"> *</span>：</label>
						<span>
							<select name="company_category_id">
								<option value="0">选择分类...</option>
								<!--{loop $webglobal[file_company][category] $categoryID $option}-->
								<option value="{$categoryID}"{if $webglobal['file_company']['editinfo']['company_category_id']==$categoryID} selected="selected"{/if}>{$option[showName]}</option>
								<!--{/loop}-->
							</select>
						</span><br>
						<label>所属商圈：</label>
						<span>
							<!-- area_id,province,city,district -->
							<input type="hidden" name="area_id" id="area_id" />
							<select name="area" id="area">
							</select>
							<input type="hidden" name="area_info" id="area_info" value="" />
						</span><br>
						<label>商铺地址：</label>
						<span>
							<input type="text" name="address" id="address" size="50" value="{$webglobal[file_company][editinfo][address]}" />
						</span><br>
						<label>商铺电话：</label>
						<span>
							<input type="text" name="tel" size="50" value="{$webglobal[file_company][editinfo][tel]}" />
						</span><br>
						<label>商铺网址：</label>
						<span>
							<input type="text" name="site" size="50" value="{$webglobal[file_company][editinfo][site]}" />
						</span><br>
						<label>商铺介绍<span class="need"> *</span>：</label>
						<span>
							<textarea id="description" name="description" style="width:400px;height:200px;">{$webglobal[file_company][editinfo][description]}</textarea>
						</span><br>
						<input type="submit" class="btn" value="保存">
						</form>
						<script type="text/javascript">
							$(document).ready(function(){
								var areaData = '{$webglobal[file_company][area_json]}';
								var areaData = eval('(' + areaData + ')');
								var opts = {
										data: areaData,
										selStyle: 'margin-left: 3px;',
										select: '#area',
										defVal: [{$webglobal[file_company][area_tree]}]
								};
								var linkageSel = new LinkageSel(opts);
								areaData = opts = null; // 如果数据量大最好在创建LinkageSel实例之后清空

								linkageSel.onChange(function() {
									var input = $('#area_id');
									var lastselect = linkageSel.getSelectedValue();
									input.val(lastselect);
									var input1 = $('#area_info'),
										d = this.getSelectedDataArr('name'),
										arr = [];
									for (var i = 0, len = d.length; i < len; i++) {
										arr.push(d[i]);
									}
									input1.val(arr.join(''));
								});
								$("a[rel=example_group]").fancybox({
									'transitionIn'		: 'none',
									'transitionOut'		: 'none',
									'titlePosition' 	: 'over',
									'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
										return '';
									}
								});
							});
						</script>
					{elseif $webglobal['action'] == 'image'}
						<script type="text/javascript" src="{WEBURLPATH}/javascript/fancybox/jquery.mousewheel-3.0.4.pack.js"></script>
						<script type="text/javascript" src="{WEBURLPATH}/javascript/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
						<link rel="stylesheet" type="text/css" href="{WEBURLPATH}/javascript/fancybox/jquery.fancybox-1.3.4.css" media="screen" />

						<form method="post" name="regform" id="regform" enctype="multipart/form-data" action="{WEBURLPATH}/mycom.php?action=image&check" class="basic_info">
						<label>商铺logo：</label>
							<!--{if $webglobal[file_company][editinfo][logo]!=''}-->
							<a rel="example_group" href="{WEBURLPATH}{$webglobal[file_company][editinfo][logo]}" title=""><img alt="" src="{WEBURLPATH}{$webglobal[file_company][editinfo][logo]}" height="100px" /></a><br /><!--{/if}-->
							<input type="file" name="logo" size="57" />
							<div>格式：jpg,gif,png</div>
						<br>
						<label>商铺形象图片：</label>
							<!--{if $webglobal[file_company][editinfo][image]!=''}-->
							<a rel="example_group" href="{WEBURLPATH}{$webglobal[file_company][editinfo][image]}" title=""><img alt="" src="{WEBURLPATH}{$webglobal[file_company][editinfo][image]}" height="100px" /></a><br /><!--{/if}-->
							<input type="file" name="image" size="57" />
							<div>格式：jpg,gif,png</div>
						<br>
						<input type="submit" class="btn" value="保存">
						</form>
						<script type="text/javascript">
							$(document).ready(function() {
								$("a[rel=example_group]").fancybox({
									'transitionIn'		: 'none',
									'transitionOut'		: 'none',
									'titlePosition' 	: 'over',
									'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
										return '';
									}
								});
							});
						</script>
					{elseif $webglobal['action'] == 'password'}
						<form method="post" name="regform" id="regform" enctype="multipart/form-data" action="{WEBURLPATH}/mycom.php?action=password&check" class="basic_info">
						<label>原密码：</label>
							<input type="password" name="passwordold" size="32" value="" /> 不修改请留空
						<br>
						<label>修改登录密码：</label>
							<input type="password" name="password" size="32" value="" /> 不修改请留空
							<br>
						<label>重复输入密码：</label>
							<input type="password" name="passwordtwo" size="32" value="" /> 不修改请留空
							<br>
						<input type="submit" class="btn" value="保存">
						</form>
					{elseif $webglobal['action'] == 'map'}
						<form method="post" name="regform" id="regform" enctype="multipart/form-data" action="{WEBURLPATH}/mycom.php?action=map&check" class="basic_info" onkeydown="if(event.keyCode==13){mark_map();return false;}">
						<script type="text/javascript" src="http://ditu.google.cn/maps/api/js?sensor=false"></script>
						<!-- latitude 纬度,longitude 经度 -->
						<input type="hidden" name="latitude" id="input_latitude" value="{$webglobal[file_company][editinfo][latitude]}" />
						<input type="hidden" name="longitude" id="input_longitude" value="{$webglobal[file_company][editinfo][longitude]}" />
						<div>
						<input type="button" value="标注新坐标" onclick="mark_map();" class="btn" id="mark_map_button" />
						<input type="hidden" name="area_info" id="area_info" value="{$webglobal['file_company']['editinfo']['areainfo']}" />
						<input type="text" name="searchAddress" id="searchAddress" style="width:300px" /> 输入详细地址进行精确定位
						</div>
						<!--{if $webglobal[file_company][editinfo][latitude]!=0 || $webglobal[file_company][editinfo][longitude]!=0}-->
							&nbsp;&nbsp;<span id="mark_map_info">(已设定 纬度：{$webglobal[file_company][editinfo][latitude]}，经度：{$webglobal[file_company][editinfo][longitude]})</span>
						<!--{/if}-->
						&nbsp;&nbsp;<!-- <span id="mark_map_info_new"></span> -->
						<div id="map_canvas_edit" style="width:500px; height:400px; display: none; margin-top:5px;margin-bottom:5px;"></div>
						<script type="text/javascript">
							var cur_latitude = {$webglobal[file_company][editinfo][latitude]};
							var cur_longitude = {$webglobal[file_company][editinfo][longitude]};
							var cur_latlng = new google.maps.LatLng({$webglobal[file_company][editinfo][latitude]}, {$webglobal[file_company][editinfo][longitude]});
							var cur_default_latlng = new google.maps.LatLng(35.22354439383212, 103.93229484558105);
							var cur_default_zoom = 4;
							var map;
							var new_marker;
							function map_initialize(latlng, zoom)
							{
								$("#map_canvas_edit").show();
								var myOptions = {
										zoom: zoom,
										center: latlng,
										mapTypeControl: false,
										//navigationControl: false,
										streetViewControl: false,
										mapTypeId: google.maps.MapTypeId.ROADMAP
									};
								map = new google.maps.Map(document.getElementById("map_canvas_edit"), myOptions);
							}
							function show_map()
							{
								if (cur_latitude!=0 || cur_longitude!=0)
								{
									map_initialize(cur_latlng, 16);
									var cur_marker = new google.maps.Marker({map: map, position: cur_latlng, icon: WEBURLPATH+'/images/mapflag.png'});
								}
							}
							function mark_map() {
								$("#map_canvas_edit").width(500).height(400);
								if ($('#searchAddress').val() != '') {
									map_initialize(cur_default_latlng, cur_default_zoom);
									codeAddress();
								} else {
									show_map();
								}
								google.maps.event.addListener(map, 'click', function(event){addMarker(event.latLng);});
								mark_clear();
								$("#mark_map_info_new").html('(点击地图设定新坐标)');
								$("#mainMiddle").height($(document).height()-129);
							}

							function addMarker(location) {
								if (new_marker) {
									new_marker.setMap(null);
								}
								var new_latitude = location.lat();
								var new_longitude = location.lng();
								new_marker = new google.maps.Marker({position: location,map: map});
								$("#input_latitude").val(new_latitude);
								$("#input_longitude").val(new_longitude);
								$("#mark_clear_button").show();
								$("#mark_save_button").show();
								$("#mark_map_info_new").html('(新坐标 纬度：'+new_latitude+'，经度：'+new_longitude+')');
							}
							function mark_clear() {
								if (new_marker) {
									new_marker.setMap(null);
								}
								$("#input_latitude").val(cur_latitude);
								$("#input_longitude").val(cur_longitude);
								$("#mark_clear_button").hide();
								$("#mark_map_info_new").html('');
							}
							function codeAddress() {
								var address = $('#area_info').val() + $('#searchAddress').val();
								if (address == '') {
									return;
								}
								var geocoder = new google.maps.Geocoder();
								geocoder.geocode({'address': address}, function(results, status) {
									if (status == google.maps.GeocoderStatus.OK) {
										map.setCenter(results[0].geometry.location);
										map.setZoom(16);
										var search_marker = new google.maps.Marker({
														map: map, 
														position: results[0].geometry.location,
														icon: WEBURLPATH+'/images/mapflag.png'
													});
										var infowindow = new google.maps.InfoWindow({maxWidth: 200, content: '系统根据当前地址模糊定位到此，请点击地图设定确切位置，只有点击后设定才生效，当前标记仅作参考。'});
										infowindow.open(map, search_marker);
									}
								});
							}
							$(document).ready(show_map());
						</script>
						<input type="button" value="清除新坐标" style="color:red;display:none" onclick="mark_clear();" class="btn" id="mark_clear_button" /> <input type="submit" style="display:none" id="mark_save_button" class="btn" value="保存">
						</form>
					{/if}
				</li>
			</ul>
		</div>
	</div>
</div>
<!--{/if}-->

	</div>
	<div class="clear"></div>
{template footer}